Automatic Line Patrol

  • Function:

    go.set_auto_trace(trace)
    
  • Description: unlock or lock automatic line patrol
    1. When the automatic line patrol is unlocked, Magician Go starts line patrol with the default speed of 20 cm/s, and pid (0.5, 0, 0.5); when the automatic line patrol is locked, Magician Go stops line patrol.
    2. After the automatic line patrol is unlocked, other motion control instructions are unavailable.
    3. If the safety switch is turned on, Magician Go will stop moving when touching an obstacle.
  • Required parameter: trace: state of automatic line patrol; 0: automatic line patrol is off; 1: automatic line patrol is on
  • Return:
    • True: The command has been finished.
    • False: The command has not been finished.
  • Example

    go.set_auto_trace(trace=1)
    

    The automatic line patrol of Magician Go is on.

results matching ""

    No results matching ""